import request from '@/api/request'
import home from './modules/home'

const BASIC_URL = import.meta.env.VITE_BASIC_URL

//获取验证码
export const reqGetCaptchaImage = () => request.get(BASIC_URL + '/captchaImage')

//用户登录
export const reqUserLogin = (data) => request.post(BASIC_URL + '/login', data)

//获取用户信息
export const reqGetUserInfo = () => request.get(BASIC_URL + '/getInfo')

const API = {
  home,
  reqGetCaptchaImage,
  reqUserLogin,
  reqGetUserInfo,
}

export default API
